package java910;

import java.util.Scanner;

//5)、输入圆形半径，求圆形的周长和圆形的面积,并将结果输出。
public class Circle {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入圆的半径：");
        double R = input.nextDouble();
        final double pi = 3.14;
        double C = 2 * pi * R;
        double S = pi * Math.pow(R, 2);
        System.out.println("该圆的半径为：R=" + R);
        System.out.println("该圆的周长为：C=2*" + pi + "+" + R + "=" + C);
        System.out.println("该圆的面积为：S=" + pi + "*" + R + "*" + R + "=" + S);

    }
}
